package com.ld.security.server.admin.modules.ge.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ld.security.common.core.base.column.ListJson;
import com.ld.security.common.mybatis.anno.SqlKey;
import com.ld.security.common.mybatis.base.entity.SuperEntity;
import com.ld.security.common.mybatis.constant.SqlCondition;
import com.ld.security.server.admin.modules.ge.constant.GeCompConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Map;

@TableName("ge_comp")
@ApiModel("组件表")
@Data
public class GeCompEntity  extends SuperEntity
{

  @ApiModelProperty("组件分类")
  @SqlKey(SqlCondition.eq)
    private String compType;




  @ApiModelProperty("内容")
  @SqlKey(SqlCondition.eq)
    private String content;




  @ApiModelProperty("编码")
  @SqlKey(SqlCondition.eq)
    private String code;




  @ApiModelProperty("标题")
  @SqlKey(SqlCondition.like)
    private String label;


  @ApiModelProperty("配置")
  private ListJson config;


  @ApiModelProperty("组件模板编号")
  @SqlKey(SqlCondition.eq)
  private String telId;



  @ApiModelProperty("视图编号")
  @SqlKey(SqlCondition.eq)
  private String viewId;

  @ApiModelProperty("工程编号")
  @SqlKey(SqlCondition.eq)
  private String projectId;

  @ApiModelProperty("组件范围")
  @SqlKey(SqlCondition.eq)
  private GeCompConstant.compScope compScope;



  @TableField(exist = false)
  @SqlKey(tableField = false)
  private Map configMap;




        }
